<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
{if isset($aStore)}
    {if !defined(PHPFOX_IS_AJAX)}
        <div id="listing_store_header" class="listing_banner" {if !empty($aStore.theme_id)} style="background-image: url('{if !empty($aStore.image_path)}{img server_id=$aListing.server_id title=$aListing.title path='marketplace.url_image' file=$aStore.image_path return_url=true} {else}{param var='core.path'}module/marketplace/static/image/theme/{$aStore.theme_id}.png{/if}');"{/if}>
        {/if}
             <div class="store_details">
                        <h3 class="title">{$aStore.name}</h3>
                        <span class="addr">{$aStore.address}</span>
                        <span class="tel">{if !empty($aStore.phone_number)}Tel: {$aStore.phone_number}{/if}</span>
                </div>
            {if Phpfox::isAdmin() || Phpfox::getUserId() == $aStore.user_id}
            <a class="btn_change_photo" href="#" onclick="tb_show('Change Photo',$.ajaxBox('marketplace.store.changePhoto','id={$aStore.store_id}&iListingId={$aListing.listing_id}'));return false;">Change Photo</a>
            <a class="edit_store" href="#" onclick="tb_show('Edit Store',$.ajaxBox('marketplace.store.edit','id={$aStore.store_id}&iListingId={$aListing.listing_id}'));return false;">Edit Store</a>
            {/if}
        {if !defined(PHPFOX_IS_AJAX)}
        </div>
        <div class="clear"></div>
    {/if}
{/if}